/// @description 编辑菜单
// You can write your code in this editor

//气泡选中
pop_select = 3;
pop_sprite[0] = sBox;
pop_sprite[1] = sPallet;
pop_sprite[2] = sWall;
pop_sprite[3] = sPlayer_down;

//创建Group
group = sai_scrViewNew(noone, sai_oView, x, y);
group.view_width = 32*4;
group.view_height = 32;

//创建Item
for(var i=0;i<4;i++)
{
	pop_item[i] = sai_scrViewNew(group, oEditItem, i*32, 0);
	pop_item[i].spr = pop_sprite[i];
	pop_item[i].is_tool = true;
	pop_item[i].view_check_onChange = scr_map_toolChange;
}
pop_item[pop_select].checked = true;

//隐藏UI
with(oKeyPad)
	view_show = false;